var port = 80;

var express = require("express");
var router = require("./router");

var app = express();

app.use("/", router);

app.get("/is-alive", function(req, res) {
	console.log(`UserInfo: [${req.rawHeaders.toString()}]`);
	res.send(true);
});

app.get("/", function(req, res) {
	res.send("Welcome to home page.\n");
});

app.listen(port, function() {
	console.log(`Server start at port ${port}.`);
});
